package com.yl.principles.demo4.after;



/**
 * @Author 小羊
 * @Date 29/10/2024下午 4:24
 * @ClassName Client
 * @Description 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        //创建第一个安全门对象
        XiaoYangSafetyDoor safetyDoor = new XiaoYangSafetyDoor();
        safetyDoor.antiTheft();
        safetyDoor.fireproof();
        safetyDoor.waterproof();
        System.out.println("========");
        //创建第二个安全门对象
        XiaoYangSafetyDoor2 safetyDoor2 = new XiaoYangSafetyDoor2();
        safetyDoor2.antiTheft();
        safetyDoor2.fireproof();

    }
}
